/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pkginterface;

/**
 *
 * @author sara
 */
public class Rectange implements Graph{
    private int width;
    private int heigh;

    public Rectange(int width, int heigh) {
        this.width = width;
        this.heigh = heigh;
    }
    public int getArea()
    {
        return width*heigh;
    }
    public int getPerimeter()
    {
        return (width+heigh)*2;
    }
    public String toString()
    {
        return "Rectange{" + "width=" + width + ",heigh="+heigh + '}'+ "\narea:"+this.getArea()+"\ncircum:"+this.getPerimeter() ;
    }
}
